package com.yunhui.service;

import com.yunhui.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunhui.tool.Result;

import java.util.Date;

/**
 * <p>
 *  商家的业务处理接口
 * </p>
 *
 * @author WGH
 * @since 2019-12-09
 */
public interface MerchantService extends IService<Merchant> {

    /**
     * 注册
     * @param account
     * @param phone
     * @param eamil
     * @param password
     * @return
     */
    public int insertMerchant(String account, String phone, String eamil, Date createDate, Integer status, String password);

    /**
     * 登录
     * @param account
     * @param password
     * @return
     */
    public Merchant userLogin(String account,String password);

    public Result regist(Merchant merchant);
}
